Skip to content

Instantly share code, notes, and snippets.

@Alcotana
Alcotana / nodejs_here.reg
Last active September 18, 2025 13:53
Open directory with "Node.js command prompt" using right-click menu command "Node.js here"
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\directory\background\shell\nodejs]
"Icon"="cmd.exe"
@="&Node.js here"
[HKEY_CLASSES_ROOT\directory\background\shell\nodejs\command]
@="cmd.exe /s /k pushd \"%V\" & nodevars.bat"
[HKEY_CLASSES_ROOT\directory\shell\nodejs]
@ovn-is
ovn-is / pwn.py
Created May 5, 2025 17:20
crack new zte factorymode
import random
import re
from urllib.parse import urlparse, parse_qs
from Crypto.Cipher import AES
import requests
# see https://github.com/douniwan5788/zte_modem_tools/issues/20#issuecomment-2849666205
from rss import create_payload_array, verify_do_check_client, parse_mac
ROOT = "http://192.168.1.1"
@lexrus
lexrus / AI_007_prompt.en.txt
Last active September 18, 2025 13:50
AI 通宵干活 prompt
__This is the requirements section, please replace it yourself__
Above are the requirements, below are the decision-making requirements:
- I'm going to sleep now, all product and technical decisions are under your control, I'll come to review the results tomorrow morning
- I'll sleep for about 8 hours, so don't rush to produce results, take your time with all the details, don't save tokens, getting it right is most important
- When you encounter uncertainties, first check the documentation in context7, if still uncertain, search online
- Execute all subtasks in phases, run unit tests after each phase is completed, to avoid having to start over after completing everything only to find it doesn't work
- Don't get hung up on the UI part, try to use mainstream conventional approaches, I'll polish the details tomorrow, you just focus on getting the functionality working
@Seb-C
Seb-C / chrome_read_adapter.go
Last active September 18, 2025 13:49
PDF stream read adapter for chromedp
package util
import (
"bytes"
"context"
"encoding/base64"
"fmt"
"io"
chromeio "github.com/chromedp/cdproto/io"
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
Homebrew has a services manager and can manage its own Java installation, so an easier way to do this is just
# this will install java 1.8, zookeeper, and kafka
brew install kafka
# this will run ZK and kafka as services
brew services start zookeeper
brew services start kafka
That's it. If you want to stop Kafka, just run the brew services commands in reverse:
@BadMagic100
BadMagic100 / i2cpp_ghidra.md
Last active September 18, 2025 13:43
Instructions to get a useful decompilation out of an il2cpp game. Or, "I spent hours to trial and error so hopefully you won't have to"

Decompiling IL2CPP Games with Il2CppDumper and Ghidra

This guide will walk through how to decompile/reverse engineer IL2CPP games for modding usage.

Note: expect this entire process to take upwards of an hour. Have something ready to do on the side while waiting for processing to finish.

Prerequisites

  1. Download Il2CppDumper
import { ThemedText } from "@/components/themed-text";
import { BottomSheet, Button, Host, Slider } from "@expo/ui/swift-ui";
import { frame, offset } from "@expo/ui/swift-ui/modifiers";
import { Canvas, Fill, Shader, Skia, vec } from "@shopify/react-native-skia";
import { useState } from "react";
import {
PlatformColor,
StyleSheet,
useWindowDimensions,
View,
@mutin-sa
mutin-sa / Top_Public_Recursive_Name_Servers.md
Last active September 18, 2025 13:41
List of Top Public Recursive Name Servers

DNS:

IPv4 Addr IPv6 Addr ASn Political Region Loc Svc Org
8.8.8.8 2001:4860:4860::8888 AS15169 US Worldwide (Anycast) Google Public DNS Google
8.8.4.4 2001:4860:4860::8844 AS15169 US Worldwide (Anycast) Google Public DNS Google
1.1.1.1 2606:4700:4700::1111 AS13335 US Worldwide (Anycast) Cloudflare-DNS Cloudflare/APNIC
1.0.0.1 2606:4700:4700::1001 AS13335 US Worldwide (Anycast) Cloudflare-DNS Cloudflare/APNIC
95.85.95.85 2a03:90c0:999d::1 AS199524 EU *W